import request from "@/utils/request";

/* 聊天记录清空 */
export function clear_msg(data) {
    return request({
        url: '/api/library/clear_msg',
        method: 'post',
        data
    })
}
/* 最佳回复 */
export function agree_msg(data) {
    return request({
        url: '/api/library/agree_msg',
        method: 'post',
        data
    })
}

/* 错误回复 */
export function disagree_msg(data) {
    return request({
        url: '/api/library/disagree_msg',
        method: 'post',
        data
    })
}
/* 回复结束 */
export function stop_dialogue(params) {
    return request({
        url: '/api/stop_dialogue',
        method: 'get',
        params
    })
}
/* 获取模型列表 */
export function modelOptionslist(params) {
    return request({
        url: '/api/model_list',
        method: 'get',
        params
    })
}
// 获取所有可用的知识库内的文件
export function user_files(params) {
    return request({
        url: '/api/cross/user_files',
        method: 'get',
        params
    })
}